<?php
	
	require_once('../inc/fen_fns.php');
	
	sec_session_start();
	
	$form_values = $_POST;
	
	if(login_check($mysqli, '>', '10') == true) {
	
		foreach($form_values as $x=>$x_value)
		{
		
			$delete = substr($x_value,1);
			$query = $_DB->Query("DELETE FROM `buzeb`.`fen_toplanti` WHERE `fen_toplanti`.`member_id` = '".$_SESSION['user_id']."' and `fen_toplanti`.`id` = '$delete'");
		}
	
	} else {
		header('Location: ./index.php?error=2');
	}
	

	
